package com.example.demo.tool;

public enum ResponseEnum {
    SUCCESS("0000", "成功!"),
    UNKNOWN("9999", "未知异常!"),
    LACK_PARAM("0001", "参数不合法!"),
    PARAM_NOT_ALLOW("0002", "参数不允许!"),
    VERIFY_ALREADY_NOT_VALIDATE("0003", "验证码已经失效!"),
    EXCEED_MAX_COUNT("0004", "已经超过最大次数!"),
    VERIFY_NOT_MATCH("0005", "验证码不匹配!"),
    VERIFY_NOT_EXIST("0006", "验证码不存在!"),
    RIGHT_NOT_ALLOW("0007", "权限不允许!"),
    OPERATE_NOT_ALLOW("0008", "操作不被允许!"),
    SIGN_ERROR("0009", "签名错误!"),
    USER_ALREADY_EXIST("0100", "用户名已存在!"),
    USER_ALREADY_LOCK("0102", "用户已经被锁!"),
    LOGINNAME_PASSWORD_ERROR("0104", "登录名或密码错误!"),
    USER_NOT_EXIST("0106", "用户不存在!"),
    USER_WAITING_AUDIT("0107", "等待审核!"),
    SERIALNUMBER_NOT_ALLOW("0108", "机器码错误!"),
    ACCESS_TOKEN_OUT_OF_DATE("0109", "token过期!"),
    ACCOUNT_NOT_ENOUGH("0200", "账户余额不足!"),
    NOT_FOUND("0404", "资源未找到!"),
    BLOCK_MACHINE("0500", "黑名单!"),
    ILLEGAL_PARAM("0201", "参数不合法!"),
    PARAM_REPEAT("0202", "参数重复!"),
    FAILURE("9998", "失败!"),
    PASSWORD_DECODING_ERROR("0203", "密码解码错误!"),
    OLD_PASSWORD_NOT_MATCH("0207", "旧密码不匹配!"),
    PHONE_ALREADY_REGIST("0031", "手机号已经注册!"),
    WECHAT_ALREADY_REGIST("0032", "微信号已经注册!"),
    EMAIL_ALREADY_REGIST("0033", "邮箱已经注册!"),
    MACHINE_ALREADY_EXIST("0034", "设备已经存在"),
    BREAKER("0040", "触发熔断"),
    EMAIL_OR_USERNAME_ALREADY_REGIST("0035", "邮箱或用户名已被使用"),
    ERROR_TENX("0041", "该分析不存在！")
    ;

    private String code;
    private String message;

    private ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
